package ooday02;

public class DrinkCola {
    public static void main(String[] args) {
        //设瓶身为X，瓶盖为Y
        int num = 20;
        int x = 20, y = 20;

        while (true) {
            while (x >= 2) {
                num += x / 2;
                x /= 2;
            }

            while (y >= 3) {
                num += y / 3;
                y /= 3;
            }
            break;
        }
        System.out.println(num);
    }
}

